From 16a1f39d38d7a33c2d8ac08a1acca8e0de9fa060 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 24 Nov 2005 11:06:26 +0100 Subject: [PATCH] dom0_ops return -EACCES when the interface version in wrong. I think that an acm failure is closer to being non-priv'ed, which returns -EPERM. Wouldn't want dom0 tools to report they were the wrong version just because ACM limited some operation, surely? Signed-off-by: Rusty Russell (authored) --- xen/common/dom0_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/dom0_ops.c b/xen/common/dom0_ops.c index aa32927565..4284f074d6 100644 --- a/xen/common/dom0_ops.c +++ b/xen/common/dom0_ops.c @@ -102,7 +102,7 @@ long do_dom0_op(dom0_op_t *u_dom0_op) return -EACCES; if ( acm_pre_dom0_op(op, &ssid) ) - return -EACCES; + return -EPERM; spin_lock(&dom0_lock); -- 2.30.2